package cn.sdormitory.school.entity;

import cn.sdormitory.common.utils.poi.ExcelTitle;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_school_duty")
public class SchoolDuty {

    @ExcelIgnore
    private Long id;

    @ApiModelProperty(value = "用户ID")
    @ExcelIgnore
    private Long userId;

    @ExcelProperty("老师姓名")
    @ExcelTitle(title = "老师姓名")
    @ColumnWidth(12)
    @TableField(exist = false)
    private String userName;


    @ExcelProperty("值班日期")
    @ExcelTitle(title = "值班日期")
    @ColumnWidth(12)
    @ApiModelProperty(value = "值班日期 YYYY-MM-dd")
    private String dutyDate;


    @ExcelProperty("值班类型")
    @ExcelTitle(title = "值班类型")
    @ColumnWidth(12)
    @TableField(exist = false)
    private String dutyTypeName;

    @ApiModelProperty(value = "值班类型 1：部门经理值班 2：部门成员值班")
    @ExcelIgnore
    private String dutyType;

    @ExcelProperty("值班部门")
    @ExcelTitle(title = "值班部门")
    @ColumnWidth(12)
    @TableField(exist = false)
    private String dutyDeptName;

    @ApiModelProperty(value = "值班部门 1：启蒙星 2：BCSP")
    @ExcelIgnore
    private String dutyDept;

    @ExcelIgnore
    private String createBy;

    @ExcelIgnore
    private Date createdTime;

    @ExcelIgnore
    private String modifyBy;

    @ExcelIgnore
    private Date modifyTime;


}
